Autoserve Customer Contract Import
Introduction
This will import Autoserve vehicles in to ViSN
download sample Autoserve customer contract import file.
File format
Comma Separated Values - *.csv
Encoding - UTF-8
Autoserve Customer Customers Import
| Autoserve Customer contract fields | Description | Max length | Data Type | Rules | Mandatory | Example |
|---|---|---|---|---|---|---|
| Customer | Customer Name | 100 | String | A-Z & 0-9 and Special Characters | Y | One Stop Auto Zone |
| Customer Account Number | Customer Account Number | 100 | String | A-Z & 0-9 and Special Characters | N | 88AX29UE39 |
| Registration | Vehicle Registration Number | 10 | String | A-Z 0-9 | Y | JJ05SAT |
| Vehicle Type | Vehicle Type | 20 | String | A-Z | Y | CAR |
| Make | Make of the vehicle | 20 | String | A-Z 0-9 and Special Characters | Y | Ford |
| Model | Model of the vehicle | 100 | String | A-Z 0-9 and Special Characters | Y | Escape |
| Specification | Variant | 100 | String | A-Z 0-9 and Special Characters | N | Manual transmission |
| StartDate | Vehicle Contract Start Date | 8 | String | DDMMYYYY | Y | 05051998 |
| ContractEndDate | Vehicle Contract End Date | 8 | String | DDMMYYYY | Y | 30102024 |
| ContractTypeName | Contract Type Name | NA | String | A-Z 0-9 and Special Characters | N | |
| ContractStatus | Vehicle Contract Status | 4 | String | A-Z | N | Active |
| Customer Reference | Asset Number | 20 | String | A-Z 0-9 | N | P10 |
| Mobile | Mobile Network Policy Status | 1 | String | Y/N | Y | N |
| Franchise | Franchise Network Policy Status | 1 | String | Y/N | Y | N |
| Independent | Independent Network Policy Status | 1 | String | Y/N | Y | N |
Importing a File
Preparation
- Create a new branch including the Jira task number in the branch name.
- Delete all files in the
importFilesfolder. - Create a folder with the current sprint number.
- Copy the file that needs to be imported to the created folder.
- Update
package.json:- Locate the line for
validate:autoServeCustomerContract. - Update
--leaseIdwith the required lease ID. - Update
--filewith the relative path of the file.
- Locate the line for
- Save
package.json.
Local Validation
- In a terminal, run
npm run build. - Run the validation script:
npm run validate:autoServeCustomerContract. - If validation passes without errors, push the code.